package edu.nf.vrs.search.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Mapping;

/**
 * Author: @Wai
 * Date: 2022-3-29
 */
@Document(indexName = "needlenum_info",createIndex = false)
@Mapping
@Data
public class NeedleNum {
    /**
     * 针次ID
     */
    @Id
    private Integer nid;
    /**
     * 区域名称
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String areaName;
    /**
     * 地址
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String address;
    /**
     * 详细地点
     */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String detailed;
    /**
     * 联系电话
     */
    @Field(type = FieldType.Keyword)
    private String tel;
    /**
     * 接种日期
     */
    @Field(type = FieldType.Keyword)
    private String inoculateDate;
    /**
     * 针次（第一针或第二针）
     */
    @Field(type = FieldType.Integer)
    private Integer needleNum;
    /**
     * 疫苗品牌
     */
    @Field(type = FieldType.Keyword)
    private String vaccineBrand;
    /**
     * 疫苗总数
     */
    @Field(type = FieldType.Integer)
    private Integer vaccineTotal;
    /**
     * 剩余疫苗数
     */
    @Field(type = FieldType.Integer)
    private Integer vaccineOver;
    /**
     * 是否过期
     */
    @Field(type = FieldType.Integer)
    private Integer status;
}
